
$(document).ready(function() {

	$("tr.player").mouseover(function(event)
	{
		$(this).addClass("hover");
	});
	
	$("tr.player").mouseout(function(event)
	{
		$(this).removeClass("hover");
	});

    $("tr.player").click(function(event)
	{
		var name = $(this).attr("name");
		var id = $(this).attr("id");
		var answer = confirm("Select "+name+"?");
		if (answer){
			window.location.href = "selectionpage.php?id="+id;
		}
	});
});